package com.baoyouqun.domain.cmd;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

// 修改密码入参
@Data
public class UpdatePasswordCmd {
    
    private String userId;

    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,18}$", message = "密码长度为6-18位，仅包含字母和数字")
    private String newPassword;
}
